﻿<ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
    <RadialGradientBrush x:Key="HighlightBrush" Center="0.5,1.1" GradientOrigin="0.5,1.1">
        <GradientStop Color="White" Offset="0"/>
        <GradientStop Color="Transparent" Offset="1"/>
    </RadialGradientBrush>

    <RadialGradientBrush x:Key="HighlightOverBrush">
        <GradientStop Color="Transparent" Offset="0"/>
        <GradientStop Color="White" Offset="1"/>
    </RadialGradientBrush>

    <RadialGradientBrush x:Key="HighlightPressBrush">
        <GradientStop Color="Transparent" Offset="0"/>
        <GradientStop Color="Black" Offset="1"/>
    </RadialGradientBrush>

    <LinearGradientBrush x:Key="OverlayBrush" StartPoint="0,0" EndPoint="0,1">
        <GradientStop Color="#99FFFFFF" Offset="0"/>
        <GradientStop Color="#ABFFFFFF" Offset="0.5"/>
        <GradientStop Color="#66FFFFFF" Offset="0.5"/>
        <GradientStop Color="#00FFFFFF" Offset="1"/>
    </LinearGradientBrush>


    <StreamGeometry x:Key="play_icon_pathdata">
        F1M1.932,24.628C1.932,24.628 1.94,13.391 1.94,13.391 1.94,13.391 1.932,1.523 1.932,1.523 1.932,1.523 21.311,11.179 21.311,12.996 21.232,13.786 1.932,24.628 1.932,24.628z
    </StreamGeometry>

    <StreamGeometry x:Key="pause_icon_pathdata">
        F1M12.495,1.29C13.81,1.29 14.875,2.202 14.875,3.327 14.875,3.327 14.875,20.052 14.875,20.052 14.875,21.177 13.81,22.089 12.495,22.089 11.181,22.089 10.116,21.177 10.116,20.052 10.116,20.052 10.116,3.327 10.116,3.327 10.116,2.202 11.181,1.29 12.495,1.29z M3.495,1.29C4.153,1.29 4.747,1.518 5.178,1.887 5.393,2.071 5.568,2.29 5.688,2.534 5.808,2.778 5.875,3.046 5.875,3.327 5.875,3.327 5.875,3.392 5.875,3.515 5.875,3.637 5.875,3.817 5.875,4.046 5.875,4.503 5.875,5.156 5.875,5.94 5.875,6.724 5.875,7.639 5.875,8.619 5.875,9.599 5.875,10.644 5.875,11.689 5.875,12.735 5.875,13.78 5.875,14.76 5.875,15.74 5.875,16.655 5.875,17.439 5.875,18.223 5.875,18.876 5.875,19.333 5.875,19.562 5.875,19.742 5.875,19.864 5.875,19.987 5.875,20.052 5.875,20.052 5.875,20.333 5.808,20.601 5.688,20.845 5.568,21.089 5.393,21.308 5.178,21.492 4.747,21.861 4.153,22.089 3.495,22.089 2.838,22.089 2.243,21.861 1.813,21.492 1.598,21.308 1.423,21.089 1.303,20.845 1.183,20.601 1.116,20.333 1.116,20.052 1.116,20.052 1.116,19.987 1.116,19.864 1.116,19.742 1.116,19.562 1.116,19.333 1.116,18.876 1.116,18.223 1.116,17.439 1.116,16.655 1.116,15.74 1.116,14.76 1.116,13.78 1.116,12.735 1.116,11.689 1.116,10.644 1.116,9.599 1.116,8.619 1.116,7.639 1.116,6.724 1.116,5.94 1.116,5.156 1.116,4.503 1.116,4.046 1.116,3.817 1.116,3.637 1.116,3.515 1.116,3.392 1.116,3.327 1.116,3.327 1.116,3.046 1.183,2.778 1.303,2.534 1.423,2.29 1.598,2.071 1.813,1.887 2.243,1.518 2.838,1.29 3.495,1.29z
    </StreamGeometry>
    
    <!-- obsollete-->
    <SolidColorBrush x:Key="BaseColor" Color="#0485c3" />

    <ControlTemplate x:Key="play_button_template" TargetType="{x:Type ToggleButton}">
        <Grid>
            <Ellipse Name="Base" Stroke="#66000000" StrokeThickness="1" Fill="{TemplateBinding Background}"/>
            <Ellipse Name="HighlightOverPress" Fill="{StaticResource HighlightOverBrush}" Opacity="0"/>
            <Ellipse Name="Highlight" Fill="{StaticResource HighlightBrush}" Opacity="0.6"/>
            <Ellipse Stroke="#FFFFFF" StrokeThickness="1" Margin="1" Opacity="0.5" Fill="{StaticResource OverlayBrush}"/>
            <Path Name="IconPath" Data="{StaticResource play_icon_pathdata}" Height="24" Width="21" HorizontalAlignment="Center" Margin="3,0,0,0" Stroke="#33000000">
                <Path.Fill>
                    <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
                        <GradientStop Color="White" Offset="0.45"/>
                        <GradientStop Color="#afafaf" Offset="1"/>
                    </LinearGradientBrush>
                </Path.Fill>
            </Path>
        </Grid>
        <ControlTemplate.Triggers>
            <Trigger Property="IsMouseOver" Value="True">
                <Setter TargetName="Highlight" Property="Opacity" Value="1" />
            </Trigger>
            <Trigger Property="IsPressed" Value="True">
                <Setter TargetName="Highlight" Property="Opacity" Value="0" />
                <Setter TargetName="HighlightOverPress" Property="Fill" Value="{StaticResource HighlightPressBrush}" />
                <Setter TargetName="HighlightOverPress" Property="Opacity" Value="0.5" />
            </Trigger>
            <Trigger Property="IsChecked" Value="True">
                <Setter TargetName="IconPath" Property="Data" Value="{StaticResource pause_icon_pathdata}" />
                <Setter TargetName="IconPath" Property="Margin" Value="6,2,0,0" />
            </Trigger>
            <Trigger Property="IsEnabled" Value="False">
                <Setter TargetName="Base" Property="Fill" Value="Transparent" />
            </Trigger>
            <EventTrigger RoutedEvent="MouseEnter">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="HighlightOverPress" Storyboard.TargetProperty="Opacity" To="0.4" Duration="0:0:0.3"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
            <EventTrigger RoutedEvent="MouseLeave">
                <BeginStoryboard>
                    <Storyboard>
                        <DoubleAnimation Storyboard.TargetName="HighlightOverPress" Storyboard.TargetProperty="Opacity" To="0" Duration="0:0:0.7"/>
                    </Storyboard>
                </BeginStoryboard>
            </EventTrigger>
        </ControlTemplate.Triggers>
    </ControlTemplate>
</ResourceDictionary>